package com.wn.alibaba.cloud.sentinel.client;

import com.wn.cloud.common.response.DataResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @FileName: ProviderClient
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/4/12 - 1:18
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
@Component
@FeignClient(value = "cloud-provider-service", fallback = ProviderClientFallback.class)
public interface ProviderClient {

    @GetMapping("/provider/{id}")
    public DataResult<Object> getData1(@PathVariable("id") long id);
}
